import Http from '@/lib/http'

export function queryBidFilingList (startPage = 1, size = 10, query = {}) {
  return Http.post(
    `/bid/queryBidFilingList?startPage=${startPage}&size=${size}`,
    query,
  )
}

export function cancelBidFiling (id) {
  return Http.post('/bid/cancelBidFiling', { id, filingState: 7 })
}

export function filingInfoAdd (data) {
  return Http.post('/bid/filingInfoAdd', { ...data })
}

export function filingInfo (id) {
  return Http.get(`/bid/filingInfo/${id}`)
}
